<?
class Galleree
{
    public $folders=array();
    public $images=array();
    private $dir;
    
    function Galleree(){
        $config=new Config();
    }
    
    private function Support($filename) {
        
    }

    private function Exclude($filename) {
        if ($filename == "." || $filename == "..")
            return true;
        return False;
    }

    public function Load($dir) {
        $this->dir=$dir;
        if ($directory=opendir($gconfig->data_dir . '/' . $dir)) {
            while (false != ($entry = readdir($directory))) {
                if ($this->Exclude($entry)){
                    continue;
                }
                else if (is_dir($entry)) {
                    $folder=new Folder($entry);
                    $folders[]=$folder;
                }
                else if ($this->Support($entry)) {
                    $image=new Image($entry);
                    $images[]=$image;
                }
            }
            closedir($directory);
        }
    }
    
    public function GetTitle() {
    }
};
?>